<!doctype html>
<html lang="zh-CN">
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <meta name="referrer" content="no-referrer-when-downgrade">
    

    <title>《Flutter之Stack用法小结》 | 早起的年轻人</title>
    <meta property="og:title" content="《Flutter之Stack用法小结》 - 早起的年轻人">
    <meta property="og:type" content="article">
        
    <meta property="article:published_time" content='2021-07-31T21:14:43&#43;08:00'>
        
        
    <meta property="article:modified_time" content='2021-07-31T21:14:43&#43;08:00'>
        
    <meta name="Keywords" content="Flutter，golang,go语言,go语言笔记,飞雪无情,java,android,博客,项目管理,python,软件架构,公众号,小程序">
    <meta name="description" content="《Flutter之Stack用法小结》">
        
    <meta name="author" content="luckly">
    <meta property="og:url" content="https://luckly.work/post/Flutter%E4%B9%8BStack%E7%94%A8%E6%B3%95%E5%B0%8F%E7%BB%93/">
    <link rel="shortcut icon" href='/favicon.ico'  type="image/x-icon">

    <link rel="stylesheet" href='/css/normalize.css'>
    <link rel="stylesheet" href='/css/style.css'>
    <script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

    
    
    
        <link href="https://cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" rel="stylesheet">
    
    
    
    
        <link rel="stylesheet" href='/css/douban.css'>
    
        <link rel="stylesheet" href='/css/other.css'>
    
</head>

<link rel="stylesheet"
      href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/highlight.min.js"></script>
<body>
    <header id="header" class="clearfix">
    <div class="container">
        <div class="col-group">
            <div class="site-name ">
                
                    <a id="logo" href="https://luckly.work/">
                        早起的年轻人
                    </a>
                
                <p class="description">专注于Flutter、Android、Java、Go语言(golang)、移动互联网、项目管理、软件架构</p>
            </div>
            <div>
                <nav id="nav-menu" class="clearfix">
                    <a class="current" href="https://luckly.work/">首页</a>
                    
                    <a  href="https://luckly.work/categories/" title="分类">分类</a>
                    
                    <a  href="https://luckly.work/tags/" title="标签">标签</a>
                    
                    <a  href="https://luckly.work/about/" title="关于我">关于我</a>
                    
                    <a  href="https://github.com/ITmxs/" title="github">github</a>
                    
                </nav>
            </div>
        </div>
    </div>
</header>

    <div id="body">
        <div class="container">
            <div class="col-group">

                <div class="col-8" id="main">
                    
<div class="res-cons">
    <style type="text/css">
    .post-toc {
        position: fixed;
        width: 200px;
        margin-left: -210px;
        padding: 5px 10px;
        font-family: Athelas, STHeiti, Microsoft Yahei, serif;
        font-size: 12px;
        border: 1px solid rgba(0, 0, 0, .07);
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.98);
        background-clip: padding-box;
        -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        word-wrap: break-word;
        white-space: nowrap;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        z-index: 999;
        cursor: pointer;
        max-height: 70%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .post-toc .post-toc-title {
        width: 100%;
        margin: 0 auto;
        font-size: 20px;
        font-weight: 400;
        text-transform: uppercase;
        text-align: center;
    }

    .post-toc .post-toc-content {
        font-size: 15px;
    }

    .post-toc .post-toc-content>nav>ul {
        margin: 10px 0;
    }

    .post-toc .post-toc-content ul {
        padding-left: 20px;
        list-style: square;
        margin: 0.5em;
        line-height: 1.8em;
    }

    .post-toc .post-toc-content ul ul {
        padding-left: 15px;
        display: none;
    }

    @media print,
    screen and (max-width:1057px) {
        .post-toc {
            display: none;
        }
    }
</style>
<div class="post-toc" style="position: absolute; top: 188px;">
    <h2 class="post-toc-title">文章目录</h2>
    <div class="post-toc-content">
        <nav id="TableOfContents">
  <ul>
    <li><a href="#方案一">方案一</a></li>
    <li><a href="#方案二">方案二</a></li>
  </ul>
</nav>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        var postToc = $(".post-toc");
        if (postToc.length) {
            var leftPos = $("#main").offset().left;
            if(leftPos<220){
                postToc.css({"width":leftPos-10,"margin-left":(0-leftPos)})
            }

            var t = postToc.offset().top - 20,
                a = {
                    start: {
                        position: "absolute",
                        top: t
                    },
                    process: {
                        position: "fixed",
                        top: 20
                    },
                };
            $(window).scroll(function () {
                var e = $(window).scrollTop();
                e < t ? postToc.css(a.start) : postToc.css(a.process)
            })
        }
    })
</script>
    <article class="post">
        <header>
            <h1 class="post-title">《Flutter之Stack用法小结》</h1>
        </header>
        <date class="post-meta meta-date">
            2021年7月31日
        </date>
        
        <div class="post-meta">
            <span>|</span>
            
            <span class="meta-category"><a href='/categories/flutter'>flutter</a></span>
            
        </div>
        
        
        <div class="post-meta">
            <span id="busuanzi_container_page_pv">|<span id="busuanzi_value_page_pv"></span><span>
                    阅读</span></span>
        </div>
        
        
        <div class="clear" style="display: none">
            <div class="toc-article">
                <div class="toc-title">文章目录</div>
            </div>
        </div>
        
        <div class="post-content">
            <blockquote>
<p>本文主要介绍记录一下如何使用 Flutter Stack Widget 来将文本跟图片中的某个特定点对齐。</p>
</blockquote>
<p>某个产品需求要求显示本月累计签到天数，于是设计给了开发如下一张图。</p>
<p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817377604093.jpg">
            <img class="mx-auto" alt="-w420" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817377604093.jpg" />
        </a>
    </p>
<p>设计姐姐”好心”地将文案也写好了，只留了个格让开发填，够简单吧。但其实开发很头疼：”累计签到”那一行文案是特殊字体，所以并不能吐槽设计的切图方式完全不合理。但问题是对背景图”填空”容易引起适配问题，稍有不慎就如下图一样没对齐。</p>
<p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817384649043.jpg">
            <img class="mx-auto" alt="-w314" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817384649043.jpg" />
        </a>
    </p>
<p>接下来看如何在 Flutter 中解决上述对齐问题。涉及到的几个要点：</p>
<ul>
<li>图片缩放 - 我们知道图片适配不同大小屏幕大小</li>
<li>了解 <code>Image.fit</code> 属性 - 这个属性控制着图片如何缩放</li>
<li>了解 <code>Stack</code> + <code>Positioned</code> 的基本用法</li>
<li>了解 <code>Stack</code> + <code>Align</code> 的基本用法</li>
</ul>
<h1 id="图片缩放">图片缩放</h1>
<p>我们知道图片适配不同大小屏幕时必然出现不同程度的缩放。Flutter 中使用 <code>Image</code> 控件显示图片，<code>Image.fit</code> 属性则用于控制图片缩放方式。<code>fit</code> 属性为枚举类型 <code>BoxFit</code>，最常用值的包括如下几种：</p>
<ul>
<li><code>fill</code> - Fill the target box by distorting the source’s aspect ratio.</li>
<li><code>contain</code> - As large as possible while still containing the source entirely within the target box.</li>
<li><code>cover</code> - As small as possible while still covering the entire target box.</li>
</ul>
<p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817395834810.jpg">
            <img class="mx-auto" alt="box_fit_fill.png (300×90)" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817395834810.jpg" />
        </a>
    </p>
<p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817396100662.jpg">
            <img class="mx-auto" alt="box_fit_contain.png (300×90)" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817396100662.jpg" />
        </a>
    </p>
<p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817396361784.jpg">
            <img class="mx-auto" alt="box_fit_cover.png (300×90)" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817396361784.jpg" />
        </a>
    </p>
<p>先来看如何将背景图铺满 <code>Stack</code>。代码如下：</p>
<pre><code>Stack(
  children: &lt;Widget&gt;[
    Image.asset(
      'images/sign_in/sign_in_head.webp',
    ),
  ]
)
</code></pre><p>不同参数时效果分别如下：</p>
<p><code>Image.asset(width: null, fit: null)</code>

        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817527373819.jpg">
            <img class="mx-auto" alt="-w595" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817527373819.jpg" />
        </a>
    </p>
<p><code>Image.asset(width: double.infinity, fit: null)</code>

        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817530863297.jpg">
            <img class="mx-auto" alt="-w579" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817530863297.jpg" />
        </a>
    </p>
<p><code>Image.asset(width: double.infinity, fit: BoxFit.fill)</code>

        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817531751686.jpg">
            <img class="mx-auto" alt="-w576" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817531751686.jpg" />
        </a>
    </p>
<p><code>Image.asset(width: double.infinity, fit: BoxFit.cover)</code>

        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817532756950.jpg">
            <img class="mx-auto" alt="-w571" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817532756950.jpg" />
        </a>
    </p>
<p>就这里的场景而言(图片高度无限制)，<code>BoxFit.cover</code> 和 <code>BoxFit.fill</code> 效果无区别。不过 <code>BoxFit.cover</code> 保证图片不会变形，是个更好的选择。</p>
<h1 id="控件定位">控件定位</h1>
<p><a href="https://api.flutter.dev/flutter/widgets/Stack-class.html">Stack 类</a>用于对若干个控件以层叠方式布局。例如：</p>
<pre><code>Stack(
  children: &lt;Widget&gt;[
    Container(
      width: 100,
      height: 100,
      color: Colors.red,
    ),
    Container(
      width: 90,
      height: 90,
      color: Colors.green,
    ),
    Container(
      width: 80,
      height: 80,
      color: Colors.blue,
    ),
  ],
)
</code></pre><p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817536932540.jpg">
            <img class="mx-auto" alt="img" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817536932540.jpg" />
        </a>
    </p>
<p><code>Stack</code> 控件的子节点要么是 <code>positioned</code> (<code>Positioned</code> 或 <code>Align</code> 控件) 要么是 <code>non-positioned</code>。<code>Stack</code> 控件的大小刚好包含所有的 <code>non-positioned</code> 子控件(这些控件默认位于 Stack 的左上角)。而 <code>positioned</code> 子节点的位置，则由其 top, right, bottom, left 属性来决定。</p>
<p><code>Positioned</code> 和 <code>Align</code> 控件都能用于 <code>Stack</code> 控件定位和对齐。<code>Positioned</code> 以 top, right, bottom, left 属性来定位，这些属性分别用于指定控件到 Stack 各边框的距离；<code>Align</code> 以 <code>Alignment(x, y)</code> 属性来定位，这些属性分别用于指定控件水平方向和垂直方向的距离范围。</p>
<p><code>Alignment</code> 的 x, y 属性规定如下：</p>
<ul>
<li><code>Alignment(0.0, 0.0)</code> - 表示矩形中点</li>
<li><code>Alignment(-1.0, -1.0)</code> - 表示矩形左上角</li>
<li><code>Alignment(1.0, 1.0)</code> - 表示矩形右下角</li>
</ul>
<p>关于 <code>Stack</code> 有一个小细节要注意。通过如下两个例子说明：</p>
<pre><code>Scaffold(
  appBar: AppBar(title: Text('hello')),

  body: Stack(
    children: &lt;Widget&gt;[
      Align(
        alignment: Alignment(0, 0),
        child: Text('hello, stack'),
      )
    ],
  ),
</code></pre><p>这个例子中，<code>Text</code> 按预期居显示：</p>
<p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817549810555.jpg">
            <img class="mx-auto" alt="-w337" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817549810555.jpg" />
        </a>
    </p>
<p>然而，当 Stack 外面嵌套一个 Column 或 ListView 之后，Align 似乎在垂直方向失去了定位的作用。</p>
<pre><code>Scaffold(
  appBar: AppBar(title: Text('hello')),

  body: Column(
    children: &lt;Widget&gt;[
      Stack(
        children: &lt;Widget&gt;[
          Align(
            alignment: Alignment(0, 0),
            child: Text('hello, stack'),
          )
        ],
      ),
    ],
  ),
</code></pre><p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817551181468.jpg">
            <img class="mx-auto" alt="-w324" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817551181468.jpg" />
        </a>
    </p>
<p>我们观察 Stack 外面嵌套一个 Column 或 ListView 之后控件树，截图如下：</p>
<p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817553643641.jpg">
            <img class="mx-auto" alt="-w549" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817553643641.jpg" />
        </a>
    </p>
<p>所以这个现象不难理解：</p>
<ul>
<li>Stack 外面无嵌套时，它占满了父控件，所以 <code>Align</code> 生效</li>
<li>Stack 外面嵌套 <code>Column</code> 或 <code>ListView</code> 时，Stack 大小未指定(最终以 <code>Text</code> 大小为准)，所以 <code>Align</code> 从视觉效果上看在垂直方向不起作用。</li>
</ul>
<p>给 Stack 指定大小就能解决这个问题。这里使用 <code>SizedBox</code> 指定 Stack 高度为 300。</p>
<p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817557227844.jpg">
            <img class="mx-auto" alt="-w551" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817557227844.jpg" />
        </a>
    </p>
<h1 id="解决方案">解决方案</h1>
<h2 id="方案一">方案一</h2>
<p>方案一使用 <code>Stack</code> + <code>Positioned</code> 定位，代码如下：</p>
<pre><code>  @override
  Widget build(BuildContext context) {
    // 计算屏幕宽度
    double width = MediaQuery.of(context).size.width;
    // 计算图片缩放比
    final scale = width / 375.0;
    return Stack(children: &lt;Widget&gt;[
      Image.asset(
        _signInHeadBg,
        width: double.infinity,
        fit: BoxFit.cover,
      ),
      // 使用 Positioned 定位，指定 top 和 right 边距
      Positioned(
        top: 113 * scale,
        right: 108 * scale,
        child: Text(
          '2',
          style: TextStyle(color: c_FFFFFFFF, fontSize: 12),
        ),
      ),
    ]);
}
</code></pre><p>注意这里的实现细节，即按图片缩放比 scale 来调整 top 和 right，保证不同大小屏幕上都能完美适配。</p>
<h2 id="方案二">方案二</h2>
<p>方案二使用 <code>Stack</code> + <code>Align</code> 定位，代码如下：</p>
<pre><code>Widget build(BuildContext context) {
  double width = MediaQuery.of(context).size.width;
  return SizedBox(
    width: width,
    height: 798.0 / 634 * width,
    child: Stack(
      children: &lt;Widget&gt;[
        Image.asset(
          _signInHeadBg,
          width: double.infinity,
          fit: BoxFit.cover,
        ),
        Align(
          child: Text(
            '2',
            style: TextStyle(color: c_FFFFFFFF, fontSize: 12),
          ),
          alignment: Alignment(0.42, -0.51),
        ),
      ],
    ),
  );
</code></pre><p>注意这里的实现细节，即为 <code>Stack</code> 添加一个指定大小的 <code>SizeBox</code>(大小与图片显示的大小相同)，保证不同大小屏幕上都能完美适配。</p>
<p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817565491620.jpg">
            <img class="mx-auto" alt="-w547" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817565491620.jpg" />
        </a>
    </p>
<p>如果不为 <code>Stack</code> 指定大小，则 <code>Align</code> 在垂直方向不生效。如下图：</p>
<p>
        <a data-fancybox="gallery" href="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817566311909.jpg">
            <img class="mx-auto" alt="-w547" src="https://blog-1251688504.cos.ap-shanghai.myqcloud.com/2020/02/15/15817566311909.jpg" />
        </a>
    </p>
        </div>

        
<div class="post-archive">
    <ul class="post-copyright">
        <li><strong>原文作者：</strong><a rel="author" href="https://luckly.work/">luckly</a></li>
        <li style="word-break:break-all"><strong>原文链接：</strong><a href="https://luckly.work/post/Flutter%E4%B9%8BStack%E7%94%A8%E6%B3%95%E5%B0%8F%E7%BB%93/">https://luckly.work/post/Flutter%E4%B9%8BStack%E7%94%A8%E6%B3%95%E5%B0%8F%E7%BB%93/</a></li>
        <li><strong>版权声明：</strong>本作品采用<a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议</a>进行许可，非商业转载请注明出处（作者，原文链接），商业转载请联系作者获得授权。</li>
    </ul>
</div>
<br/>



        

<div class="post-archive">
    <h2>See Also</h2>
    <ul class="listing">
        
        <li><a href="/post/Flutter%E4%B9%8BprecacheImage%E8%A7%A3%E6%9E%90/">《Flutter之precacheImage（）解析》</a></li>
        
        <li><a href="/post/Flutter-drawFrame/">《Flutter DrawFrame（）》</a></li>
        
        <li><a href="/post/FlutterPerformance%E5%88%86%E6%9E%90%E5%B7%A5%E5%85%B7%E7%AE%80%E4%BB%8B/">《FlutterPerformance分析工具简介》</a></li>
        
        <li><a href="/post/Flutter%E4%B9%8BStatefulWidget%E4%B8%8E%E6%80%A7%E8%83%BD/">《Flutter之StatefulWidget与性能》</a></li>
        
        <li><a href="/post/Flutter%E4%B9%8BRenderObject%E6%B5%85%E6%9E%90/">《Flutter之RenderObject浅析》</a></li>
        
    </ul>
</div>


        <div class="post-meta meta-tags">
            
            <ul class="clearfix">
                
                <li><a href='/tags/flutter'>flutter</a></li>
                
            </ul>
            
        </div>
    </article>
    
    

    
    
    <div class="post bg-white">
      <script src="https://utteranc.es/client.js"
            repo= "https://github.com/ITmxs/repo"
            issue-term="pathname"
            theme="github-light"
            crossorigin="anonymous"
            async>
      </script>
    </div>
    
</div>

                    <footer id="footer">
    <div>
        &copy; 2021 <a href="https://luckly.work/">早起的年轻人 By luckly</a>
        
        | <a rel="nofollow" target="_blank" href="http://beian.miit.gov.cn/">粤ICP备2021号-1</a>
        
    </div>
    <br />
    <div>
        <div class="github-badge">
            <a href="https://juejin.cn/user/3843548384077192" target="_black" rel="nofollow"><span class="badge-subject">Powered by</span><span class="badge-value bg-blue">掘金</span></a>
        </div>
        <div class="github-badge">
            <a href="https://space.bilibili.com/480883651" target="_black"><span class="badge-subject">Design by</span><span class="badge-value bg-brightgreen">早起的年轻人</span></a>
        </div>
        <div class="github-badge">
            <a href="https://cloud.tencent.com/developer/user/6702670" target="_black"><span class="badge-subject">Theme</span><span class="badge-value bg-yellowgreen">云社区</span></a>
        </div>
    </div>
</footer>


    
    <script type="text/javascript">
        window.MathJax = {
            tex2jax: {
                inlineMath: [['$', '$']],
                processEscapes: true
                }
            };
    </script>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script><script src="https://cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>

<a id="rocket" href="#top"></a>
<script type="text/javascript" src='/js/totop.js?v=0.0.0' async=""></script>



    <script type="text/javascript" src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async></script>




    <script src='/js/douban.js'></script>
    <script src="/js/copy-to-clipboard.js"></script>

                </div>

                <div id="secondary">
    <section class="widget">
        <form id="search" action='https://luckly.work/search/' method="get" accept-charset="utf-8" target="_blank" _lpchecked="1">
      
      <input type="text" name="q" maxlength="20" placeholder="Search">
      <input type="hidden" name="sitesearch" value="https://luckly.work/">
      <button type="submit" class="submit icon-search"></button>
</form>
    </section>
    
    <section class="widget">
        <h3 class="widget-title">最近文章</h3>
<ul class="widget-list">
    
    <li>
        <a href="https://luckly.work/xxx/xxx.html" title="信息化和信息系统">信息化和信息系统</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/Flutter/%E4%BD%BF%E7%94%A8flutter%E5%88%9B%E5%BB%BA%E6%B8%85%E5%8D%95/" title="使用flutter创建清单">使用flutter创建清单</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/Flutter/%E4%BD%BF%E7%94%A8flutter%E5%88%9B%E5%BB%BA%E5%B8%A6%E6%9C%89%E5%8A%A8%E7%94%BB%E7%9A%84%E5%88%9B%E6%84%8F%E6%B8%85%E5%8D%95/" title="使用flutter创建带有动画的创意清单">使用flutter创建带有动画的创意清单</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/Flutter/%E4%BD%BF%E7%94%A8flutter%E5%88%9B%E5%BB%BA%E6%90%9C%E7%B4%A2%E6%A0%8F/" title="使用flutter创建搜索栏">使用flutter创建搜索栏</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/Flutter/%E4%BD%BF%E7%94%A8flutter%E5%88%9B%E5%BB%BA%E5%93%8D%E5%BA%94%E5%BC%8F%E4%B8%8B%E6%8B%89%E5%AF%BC%E8%88%AA%E6%A0%8F/" title="使用flutter创建响应式下拉导航栏">使用flutter创建响应式下拉导航栏</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/Flutter/Flutter%E8%87%AA%E5%AE%9A%E4%B9%89%E5%BC%B9%E5%87%BA%E5%8A%A8%E7%94%BB/" title="Flutter自定义弹出动画">Flutter自定义弹出动画</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/Flutter/Flutter_WEB/" title="Flutter_WEB">Flutter_WEB</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/Flutter/Flutter%E7%B3%BB%E5%88%97%E5%88%97%E8%A1%A8%E5%92%8C%E7%BD%91%E6%A0%BC/" title="Flutter系列列表和网格">Flutter系列列表和网格</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/Flutter/Flutter%E8%A7%86%E8%A7%89%E9%87%8D%E5%8F%A0%E6%8C%87%E5%8D%97paddingviewpadding%E5%92%8Cviewinsets/" title="Flutter视觉重叠指南padding，viewpadding和viewinsets">Flutter视觉重叠指南padding，viewpadding和viewinsets</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/Flutter/Flutter-ListView-%E5%92%8CScrollPhysics%E8%AF%A6%E7%BB%86%E4%BB%8B%E7%BB%8D/" title="Flutter ListView 和ScrollPhysics详细介绍">Flutter ListView 和ScrollPhysics详细介绍</a>
    </li>
    
</ul>
    </section>

    
<section class="widget">
    <h3 class="widget-title" style="color:red">福利派送</h3>
    <ul class="widget-list">
        
        <li>
            <a href="https://blog.csdn.net/qq_39132095?spm=1001.2101.3001.5343" title="我的CSDN" target="_blank" style="color:red">
                
                    <img src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/flutter.png">
                
            </a>
        </li>
        
        <li>
            <a href="https://space.bilibili.com/480883651" title="我的哔哩哔哩" target="_blank" style="color:red">
                
                    <img src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/flutter.png">
                
            </a>
        </li>
        
        <li>
            <a href="https://www.zhihu.com/people/yimi-yang-guang-96-65" title="我的知乎" target="_blank" style="color:red">
                
                    <img src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/flutter.png">
                
            </a>
        </li>
        
    </ul>
</section>


    <section class="widget">
        <h3 class="widget-title"><a href='/categories/'>分类</a></h3>
<ul class="widget-list">
    
    <li><a href="https://luckly.work/categories/Go/">Go (1)</a></li>
    
    <li><a href="https://luckly.work/categories/IT/">IT (1)</a></li>
    
    <li><a href="https://luckly.work/categories/Mysql/">Mysql (1)</a></li>
    
    <li><a href="https://luckly.work/categories/Nginx/">Nginx (1)</a></li>
    
    <li><a href="https://luckly.work/categories/YouTube%E8%A7%86%E9%A2%91%E4%B8%8B%E8%BD%BD/">YouTube视频下载 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/android/">android (6)</a></li>
    
    <li><a href="https://luckly.work/categories/dart/">dart (8)</a></li>
    
    <li><a href="https://luckly.work/categories/Flutter/">Flutter (141)</a></li>
    
    <li><a href="https://luckly.work/categories/git/">git (3)</a></li>
    
    <li><a href="https://luckly.work/categories/Go/">Go (4)</a></li>
    
    <li><a href="https://luckly.work/categories/ios/">ios (1)</a></li>
    
    <li><a href="https://luckly.work/categories/linux/">linux (1)</a></li>
    
    <li><a href="https://luckly.work/categories/read/">读书笔记 (6)</a></li>
    
    <li><a href="https://luckly.work/categories/redis/">redis (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%B8%AA%E4%BA%BA%E8%B5%84%E6%96%99/">个人资料 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%B9%A6%E5%8D%95/">书单 (8)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%B9%A6%E8%AF%84/">书评 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统管理师 (8)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E9%A1%B9%E7%9B%AE%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统项目管理师 (16)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%8E%9F%E5%88%99/">原则 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%8E%9F%E7%94%9F%E9%80%9A%E8%AE%AF/">原生通讯 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%9F%BA%E7%A1%80/">基础 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%A4%8D%E5%88%A9%E6%95%88%E5%BA%94/">复利效应 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/">安装教程 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%B0%91%E6%9C%89%E4%BA%BA%E8%B5%B0%E7%9A%84%E8%B7%AF/">少有人走的路 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%BF%83%E8%AF%AD/">心语 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E6%8F%92%E4%BB%B6/">插件 (2)</a></li>
    
    <li><a href="https://luckly.work/categories/%E6%95%99%E5%AD%A6/">教学 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%8E%8B%E9%98%B3%E6%98%8E/">王阳明 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%94%B5%E5%AD%90%E4%B9%A6/">电子书 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%99%BB%E9%99%86%E8%A1%A8%E5%8D%95/">登陆表单 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%A8%BB%E7%9B%9B%E5%92%8C%E5%A4%AB/">稻盛和夫 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%A9%B7%E7%88%B8%E7%88%B8%E5%AF%8C%E7%88%B8%E7%88%B8/">穷爸爸富爸爸 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%B2%BE%E8%BF%9B/">精进 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%BC%96%E7%A8%8B/">编程 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B4%A2%E5%8A%A1%E8%87%AA%E7%94%B1%E4%B9%8B%E8%B7%AF/">财务自由之路 (2)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B7%91%E6%AD%A5/">跑步 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B7%AF%E7%94%B1%E4%BC%A0%E5%8F%82/">路由传参 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B7%AF%E7%BA%BF/">路线 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%BD%AF%E4%BB%B6%E5%AE%9E%E6%96%BD/">软件实施 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E9%98%B3%E6%98%8E%E5%BF%83%E5%AD%A6/">阳明心学 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E9%A1%B9%E7%9B%AE/">项目 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E9%AD%85%E5%8A%9B/">魅力 (1)</a></li>
    
</ul>
    </section>

    <section class="widget">
        <h3 class="widget-title"><a href='/tags/'>标签</a></h3>
<div class="tagcloud">
    
    <a href="https://luckly.work/tags/go/">go</a>
    
    <a href="https://luckly.work/tags/IT/">IT</a>
    
    <a href="https://luckly.work/tags/Mysql/">Mysql</a>
    
    <a href="https://luckly.work/tags/Nginx/">Nginx</a>
    
    <a href="https://luckly.work/tags/YouTube%E8%A7%86%E9%A2%91%E4%B8%8B%E8%BD%BD/">YouTube视频下载</a>
    
    <a href="https://luckly.work/tags/android/">android</a>
    
    <a href="https://luckly.work/tags/dart/">dart</a>
    
    <a href="https://luckly.work/tags/flutter/">flutter</a>
    
    <a href="https://luckly.work/tags/git/">git</a>
    
    <a href="https://luckly.work/tags/go/">go</a>
    
    <a href="https://luckly.work/tags/ios/">ios</a>
    
    <a href="https://luckly.work/tags/linux/">linux</a>
    
    <a href="https://luckly.work/tags/redis/">redis</a>
    
    <a href="https://luckly.work/tags/%E4%B8%AA%E4%BA%BA%E8%B5%84%E6%96%99/">个人资料</a>
    
    <a href="https://luckly.work/tags/%E4%B9%A6%E5%8D%95/">书单</a>
    
    <a href="https://luckly.work/tags/%E4%B9%A6%E8%AF%84/">书评</a>
    
    <a href="https://luckly.work/tags/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统管理师</a>
    
    <a href="https://luckly.work/tags/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E9%A1%B9%E7%9B%AE%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统项目管理师</a>
    
    <a href="https://luckly.work/tags/%E5%85%A5%E9%97%A8/">入门</a>
    
    <a href="https://luckly.work/tags/%E5%8E%9F%E5%88%99/">原则</a>
    
    <a href="https://luckly.work/tags/%E5%8E%9F%E7%94%9F%E9%80%9A%E8%AE%AF/">原生通讯</a>
    
    <a href="https://luckly.work/tags/%E5%9F%BA%E7%A1%80/">基础</a>
    
    <a href="https://luckly.work/tags/%E5%A4%8D%E5%88%A9%E6%95%88%E5%BA%94/">复利效应</a>
    
    <a href="https://luckly.work/tags/%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/">安装教程</a>
    
    <a href="https://luckly.work/tags/%E5%B0%91%E6%9C%89%E4%BA%BA%E8%B5%B0%E7%9A%84%E8%B7%AF/">少有人走的路</a>
    
    <a href="https://luckly.work/tags/%E5%BF%83%E8%AF%AD/">心语</a>
    
    <a href="https://luckly.work/tags/%E6%8F%92%E4%BB%B6/">插件</a>
    
    <a href="https://luckly.work/tags/%E6%95%99%E5%AD%A6/">教学</a>
    
    <a href="https://luckly.work/tags/%E7%8E%8B%E9%98%B3%E6%98%8E/">王阳明</a>
    
    <a href="https://luckly.work/tags/%E7%94%B5%E5%AD%90%E4%B9%A6/">电子书</a>
    
    <a href="https://luckly.work/tags/%E7%99%BB%E9%99%86%E8%A1%A8%E5%8D%95/">登陆表单</a>
    
    <a href="https://luckly.work/tags/%E7%A8%BB%E7%9B%9B%E5%92%8C%E5%A4%AB/">稻盛和夫</a>
    
    <a href="https://luckly.work/tags/%E7%A9%B7%E7%88%B8%E7%88%B8%E5%AF%8C%E7%88%B8%E7%88%B8/">穷爸爸富爸爸</a>
    
    <a href="https://luckly.work/tags/%E7%B2%BE%E8%BF%9B/">精进</a>
    
    <a href="https://luckly.work/tags/%E7%BC%96%E7%A8%8B/">编程</a>
    
    <a href="https://luckly.work/tags/%E8%AF%97/">诗</a>
    
    <a href="https://luckly.work/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/">读书笔记</a>
    
    <a href="https://luckly.work/tags/%E8%B4%A2%E5%8A%A1%E8%87%AA%E7%94%B1%E4%B9%8B%E8%B7%AF/">财务自由之路</a>
    
    <a href="https://luckly.work/tags/%E8%B7%91%E6%AD%A5/">跑步</a>
    
    <a href="https://luckly.work/tags/%E8%B7%AF%E7%94%B1%E4%BC%A0%E5%8F%82/">路由传参</a>
    
    <a href="https://luckly.work/tags/%E8%B7%AF%E7%BA%BF/">路线</a>
    
    <a href="https://luckly.work/tags/%E8%BD%AF%E4%BB%B6%E5%AE%9E%E6%96%BD/">软件实施</a>
    
    <a href="https://luckly.work/tags/%E9%80%9A%E8%AE%AF%E5%BD%95/">通讯录</a>
    
    <a href="https://luckly.work/tags/%E9%98%B3%E6%98%8E%E5%BF%83%E5%AD%A6/">阳明心学</a>
    
    <a href="https://luckly.work/tags/%E9%A1%B9%E7%9B%AE/">项目</a>
    
    <a href="https://luckly.work/tags/%E9%AD%85%E5%8A%9B/">魅力</a>
    
</div>
    </section>

    
<section class="widget">
    <h3 class="widget-title">友情链接</h3>
    <ul class="widget-list">
        
        <li>
            <a target="_blank" href="https://www.liwenzhou.com/" title="李文周">李文周的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="http://www.xbzweb.com/" title="小包子的博客">小包子的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="https://www.flysnow.org/" title="飞雪无情的博客">飞雪无情的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="http://yuedu.baidu.com/ebook/14a722970740be1e640e9a3e" title="Android Gradle权威指南">Android Gradle权威指南</a>
        </li>
        
        <li>
            <a target="_blank" href="https://gesdh.cn/" title="小格子">格子导航</a>
        </li>
        
        <li>
            <a target="_blank" href="https://itachi.xyz/" title="阿林">itachi&#39;s Blog</a>
        </li>
        
    </ul>
</section>


    <section class="widget">
        <h3 class="widget-title">其它</h3>
        <ul class="widget-list">
            <li><a href="https://luckly.work/index.xml">文章 RSS</a></li>
        </ul>
    </section>
</div>
            </div>
        </div>
    </div>
</body>

</html>